package com.ss.android.download;

import android.content.Context;
import android.content.SharedPreferences;
import android.os.AsyncTask;

import com.bytedance.common.utility.Logger;
import com.bytedance.common.utility.c.SharedPreferenceCompat;

final class i extends AsyncTask {
    private final Context a;
    private final String b;
    private final h.b c;

    i(Context arg1, String arg2, com.ss.android.download.h.b arg3) {
        this.a = arg1;
        this.b = arg2;
        this.c = arg3;

    }

    private Void a() {
        Class v1 = h.class;
        synchronized (v1) {
            SharedPreferences.Editor v0_1 = this.a.getSharedPreferences(this.b, 0).edit();
            if (this.c != null) {
                com.ss.android.download.h.b v2 = this.c;
                if (Logger.debug()) {
                    Logger.d("DownloadNotifier saveToMiscConfig", v2.a);
                }

                v0_1.putString("notifs_string", v2.a);
            }

            SharedPreferenceCompat.commit(v0_1);
            return null;
        }
    }

    protected final Object doInBackground(Object[] arg2) {
        return this.a();
    }
}

